package com.adou.common.dto;

import com.adou.common.model.DefForm;
import com.adou.common.model.base.BaseEntity;

import java.util.Date;

public class DefFormOutDto extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
    private Long id;

    private String formname;

    private String formdisplay;

    private String formtype;

    private Integer ver;

    private Integer crttype;

    private Integer fieldnum;

    private String creator;

    private Date date;

    private Boolean flag;

    public DefFormOutDto(){

    }

    public DefFormOutDto(DefForm defForm){
        this.setCreator(defForm.getCcreator());
        this.setCrttype(defForm.getIcrttype());
        this.setDate(defForm.getDdate());
        this.setFieldnum(defForm.getIfieldnum());
        this.setFlag(defForm.getBflag());
        this.setFormdisplay(defForm.getCformdisplay());
        this.setFormtype(defForm.getCformtype());
        this.setFormname(defForm.getCformname());
        this.setId(defForm.getId());
        this.setVer(defForm.getIver());
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
    
	public Boolean getFlag() {
		return flag;
	}

	public void setFlag(Boolean flag) {
		this.flag = flag;
	}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFormname() {
        return formname;
    }

    public void setFormname(String formname) {
        this.formname = formname == null ? null : formname.trim();
    }

    public String getFormdisplay() {
        return formdisplay;
    }

    public void setFormdisplay(String formdisplay) {
        this.formdisplay = formdisplay == null ? null : formdisplay.trim();
    }

    public String getFormtype() {
        return formtype;
    }

    public void setFormtype(String formtype) {
        this.formtype = formtype == null ? null : formtype.trim();
    }

    public Integer getVer() {
        return ver;
    }

    public void setVer(Integer iver) {
        this.ver = iver;
    }

    public Integer getCrttype() {
        return crttype;
    }

    public void setCrttype(Integer crttype) {
        this.crttype = crttype;
    }

    public Integer getFieldnum() {
        return fieldnum;
    }

    public void setFieldnum(Integer fieldnum) {
        this.fieldnum = fieldnum;
    }
}